package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 单元和租户关联对象 sys_unit_tenant
 * 
 * @author ruoyi
 * @date 2020-07-02
 */
public class SysUnitTenant extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 单元ID */
    private Long unitId;

    /** 租户ID */
    private Long tenantId;

    public void setUnitId(Long unitId) 
    {
        this.unitId = unitId;
    }

    public Long getUnitId() 
    {
        return unitId;
    }
    public void setTenantId(Long tenantId) 
    {
        this.tenantId = tenantId;
    }

    public Long getTenantId() 
    {
        return tenantId;
    }

    public SysUnitTenant(Long unitId, Long tenantId) {
        this.unitId = unitId;
        this.tenantId = tenantId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("unitId", getUnitId())
            .append("tenantId", getTenantId())
            .toString();
    }
}
